package com.nightsoul.springboottest2.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.nightsoul.springboottest2.domain.User;
import com.nightsoul.springboottest2.mapper.UserMapper;

@Service
public class UserServiceImpl implements UserService {
	@Resource
	private UserMapper userMapper;

	@Transactional(readOnly=true, propagation=Propagation.NOT_SUPPORTED)
	@Override
	public List<User> getUsers() {
		return this.userMapper.findAll();
	}

}
